#include<stdio.h>
typedef struct Node{
	int xishu;
	int zhishu;
}Item,Poly[10];

Poly p,q,r;
void input(){
	int i=0;
	for(i=0;i<10;i++)
	{
		p[i].xishu=0;
		p[i].zhishu=i;
		q[i].xishu=0;
		q[i].zhishu=i;
	}
	p[0].xishu=2;
	p[2].xishu=2;
	p[3].xishu=3;
	p[6].xishu=6;
	p[8].xishu=8;
	q[0].xishu=3;
	q[3].xishu=3;
	q[4].xishu=4;
	q[6].xishu=-6;
	q[9].xishu=9;

}
void Merge(){
	int i=0;
	for(i=0;i<10;i++)
	{
		r[i].xishu=p[i].xishu+q[i].xishu;
	}
}
void print()
{	
	int i=0;
	for(i=0;i<10;i++)
	{
		if(r[i].xishu!=0)
		{
			printf("%d",r[i].xishu);
			int j=0;
			for(j=0;j<i;j++)
			{
				printf("*x");
			}
			if(i<9)
			{
				printf("+");
			}
		}
		
	}
	
}
int main(){
	input();
	Merge();
	print();
	return 0;
}

